#include "Arithmetic.h"

int Arithmetic::add(int a, int b) const {
    return a + b;
}

int Arithmetic::subtract(int a, int b) const {
    return a - b;
}

int Arithmetic::multiply(int a, int b) const {
    return a * b;
}

int Arithmetic::divide(int a, int b) const {
    if (b == 0) {
        throw std::invalid_argument("Division by zero");
    }
    return a / b;
}